<?php

class Autoload {
    public static function Load( $class ) {
        if ( strpos( $class, 'E_' ) === 0 ) {
            $file = ENUM_PATH . $class . '.php';
            if ( is_file( $file)) {
                require ENUM_PATH . $class . '.php';
            }
            else {
                throw new Exception('Autoload:file is not exist. ' . $file );
            }
        }
        else {
            throw new Exception('Autoload:class is not exist. ' . $class );
        }
    }
}
